﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Content;

namespace Blokus.Audio
{
    public class Audio
    {
        public static SoundEffect land, line;
        public static Song music;
        public static void initializeAudio(ContentManager content)
        {
            land = content.Load<SoundEffect>("Sounds\\Bang");
            line = content.Load<SoundEffect>("Sounds\\Schot");
            music = content.Load<Song>("Sounds\\Title");
            MediaPlayer.IsRepeating = true;
            //MediaPlayer.Play(music);
        }

        public static void playSoundLand()
        {
            land.Play();
        }

        public static void playSoundLine()
        {
            line.Play();
        }
    }
}
